/*
 * @Author: wwxin
 * @Date: 2024-04-09 13:48:54
 * @LastEditors: wwxin
 * @LastEditTime: 2024-05-06 11:36:58
 * @FilePath: /admin/src/mock/menu.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Mock from "mockjs";

const top = [
  {
    label: "数据统计",
    path: "/wel/index",
    icon: "el-icon-menu",
    meta: {
      i18n: "dashboard",
    },
    parentId: 0,
  },
  {
    label: "bladex官网",
    icon: "el-icon-document",
    meta: {
      i18n: "website",
    },
    // path: "https://bladex.vip/#/",
    path: "",
    parentId: 1,
  },
  {
    label: "avuex官网",
    icon: "el-icon-document",
    meta: {
      i18n: "avuexwebsite",
    },
    path: "https://avuex.avue.top",
    parentId: 2,
  },
  {
    label: "测试",
    icon: "el-icon-document",
    path: "/test/index",
    meta: {
      i18n: "test",
    },
    parentId: 3,
  },
];
export default ({ mock }) => {
  if (!mock) return;
  Mock.mock("/user/getTopMenu", "get", () => {
    return {
      data: top,
    };
  });
};
